import {http} from "@/interceptor/luch-request/index.js"
// 创建职工

// 海康新增职工列表11
export const hikAdd = (data) => {
	return http.get("api/app/hik/v1/add", {
		data: data
	});
}

// 海康删除职工222
export const hikDelete = (data) => {
    return http.put("api/app/hik/v1/delete",data,{
		header:{
			"content-type": "application/json"
		}
	});	
} 

// 海康编辑职工333
export const hikUpdate = (data) => {
    return http.put("api/app/hik/v1/update",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}


// 筛选数
export const hikNodes = (data) => {
	return http.get("api/app/hik/v1/nodes", {
		data: data
	});
}


// 宝贝在线监控
export const hikPreview = (data) => {
    return http.post("api/app/hik/v1/preview",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}

// 所有监控
export const hikSearch = (data) => {
    return http.post("api/app/hik/v1/search",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}

//宝贝在线批量添加
export const saveBatch = (data) => {
    return http.post("api/app/babyOnline/v1/saveBatch",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}

// 宝贝在线列表
export const listTable = (data) => {
	return http.get("api/app/babyOnline/v1/listTable", {
		data: data
	});
}

// 宝贝在线批量删除
export const deleteBatch = (data) => {
    return http.delete("api/app/babyOnline/v1/deleteBatch",data,{
		header:{
			"content-type": "application/json"
		}
	});	
}